export interface ExecutionRecord {
  id: string;
  taskId: string;
  taskTitle: string;
  taskGuide: string;
  status: 'success' | 'error' | 'waiting' | 'running';
  duration: string;
  category: string;
  createdAt: Date;
  error?: string;
  logs?: LogEntry[];
  screenshot?: string;
  outputFiles?: OutputFile[];
}

export interface LogEntry {
  createdAt: string;
  message: string;
}

export interface OutputFile {
  name: string;
  type: string;
  size: number;
}

export interface Task {
  id: string;
  taskTitle: string;
  taskGuide: string;
  createdAt: Date;
  category: string;
}

export interface CustomTask{
  id:string,
  taskTitle: string,
  taskGuide: string
  category:string,
  saveToLibrary:boolean
}

export interface CustomTaskFormProps {
  onSubmit: (task: CustomTask & { saveToLibrary?: boolean }) => void;
  categories: string[];
}

export interface TaskOption {
  key: string;
  value: string;
  label: string;
}

export interface SelectedTaskDisplay {
  id: string;
  taskTitle: string;
} 